package com.ruoyi.blog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.blog.mapper.TUserLikeBlogMapper;
import com.ruoyi.blog.domain.TUserLikeBlog;
import com.ruoyi.blog.service.ITUserLikeBlogService;

/**
 * 用户文章点赞Service业务层处理
 * 
 * @author yang
 * @date 2021-11-15
 */
@Service
public class TUserLikeBlogServiceImpl implements ITUserLikeBlogService 
{
    @Autowired
    private TUserLikeBlogMapper tUserLikeBlogMapper;

    /**
     * 查询用户文章点赞
     * 
     * @param likeId 用户文章点赞主键
     * @return 用户文章点赞
     */
    @Override
    public TUserLikeBlog selectTUserLikeBlogByLikeId(Long likeId)
    {
        return tUserLikeBlogMapper.selectTUserLikeBlogByLikeId(likeId);
    }

    /**
     * 查询用户文章点赞列表
     * 
     * @param tUserLikeBlog 用户文章点赞
     * @return 用户文章点赞
     */
    @Override
    public List<TUserLikeBlog> selectTUserLikeBlogList(TUserLikeBlog tUserLikeBlog)
    {
        return tUserLikeBlogMapper.selectTUserLikeBlogList(tUserLikeBlog);
    }

    /**
     * 新增用户文章点赞
     * 
     * @param tUserLikeBlog 用户文章点赞
     * @return 结果
     */
    @Override
    public int insertTUserLikeBlog(TUserLikeBlog tUserLikeBlog)
    {
        return tUserLikeBlogMapper.insertTUserLikeBlog(tUserLikeBlog);
    }

    /**
     * 修改用户文章点赞
     * 
     * @param tUserLikeBlog 用户文章点赞
     * @return 结果
     */
    @Override
    public int updateTUserLikeBlog(TUserLikeBlog tUserLikeBlog)
    {
        return tUserLikeBlogMapper.updateTUserLikeBlog(tUserLikeBlog);
    }

    /**
     * 批量删除用户文章点赞
     * 
     * @param likeIds 需要删除的用户文章点赞主键
     * @return 结果
     */
    @Override
    public int deleteTUserLikeBlogByLikeIds(Long[] likeIds)
    {
        return tUserLikeBlogMapper.deleteTUserLikeBlogByLikeIds(likeIds);
    }

    /**
     * 删除用户文章点赞信息
     * 
     * @param likeId 用户文章点赞主键
     * @return 结果
     */
    @Override
    public int deleteTUserLikeBlogByLikeId(Long likeId)
    {
        return tUserLikeBlogMapper.deleteTUserLikeBlogByLikeId(likeId);
    }
}
